Nie wiem jak znaleźć informacje i nie wiem dokładnie co to robi :
trnode( const std::string& f, const std::vector< tree > & subtrees,
size_t refcnt )
: f{f},
subtrees{ subtrees },
refcnt{ refcnt }
{ }
nie rozumiem tych const std::string& f oraz przy koncu metody tego znaku ":" czy to znaczy że dziedziczy jak przy klasach ? jakies linki etc jak się to wgl nazywa :D
kod z pliku .h
Mam jeszcze taki kod:
void tree::operator = ( const tree& t )
{
this->pntr = t.pntr;
this->pntr->refcnt++;
}
const std::string& tree::functor( ) const
{
return this->pntr->f;
}
const tree& tree::operator [] ( size_t i ) const
{
return this->pntr->subtrees[i];
}
no i co tam robi const std::string& <funkcja>() const
co robi to const na koncu jak ktos by mógł podać linki albo z jakiego to standardu i czego szukać :D