SiGraph: sulcal graphs


sigraph::SelectiveLearner Class Reference

Apprend seuelement les modèles vérifiant un certain critère. More...

#include <si/learner/selectiveLearner.h>

Inheritance diagram for sigraph::SelectiveLearner:
Collaboration diagram for sigraph::SelectiveLearner:

Public Member Functions

 SelectiveLearner (bool allowsChildren=true, const std::string &synt="selective_learner")
 
virtual ~SelectiveLearner ()
 
virtual void process (LearnParam *lp)
 Cette version de process() opérant sur des cliques non-const doit être redéfinie par les classes dérivées: on ne peut pas simplement la "brancher" sur la fonction opérant sur des cliques const sinon cela empêche d'utiliser des enfants ne dérivant pas de ConstLearner.
 
virtual void process (LearnConstParam *lp)
 Apprentissage sur une clique constante.
 
bool checkClique (const Clique *cl)
 
- Public Member Functions inherited from sigraph::ConstLearner
 ConstLearner (bool allowsChildren=true, const std::string &synt="const_learner")
 
virtual ~ConstLearner ()
 
- Public Member Functions inherited from sigraph::Learner
virtual ~Learner ()
 
virtual void getVectors (LearnParam *lp)
 
virtual void getVectors (LearnConstParam *lp)
 
- Public Member Functions inherited from Tree
 Tree (bool allowChildren=true, const std::string &str="")
 
virtual ~Tree ()
 
virtual void accept (TreeVisitor &visitor)
 
virtual void const_accept (ConstTreeVisitor &visitor) const
 
virtual bool check (const carto::SyntaxSet &syntax, std::set< std::string > &missing) const
 
std::set< Tree * > getElementsWith (const std::string &, bool recurse=true) const
 
std::set< Tree * > getElementsWith (const std::string &, const T &, bool recurse=true) const
 
virtual size_t size () const __attribute__((__deprecated__))
 
virtual size_t childrenSize () const
 
- Public Member Functions inherited from carto::SyntaxedObject< PropertySet >
 SyntaxedObject (const std::string &s)
 
 SyntaxedObject (const SyntaxedObject &x)
 
 SyntaxedObject (const SyntaxedObject< PropertySet > &x)
 
 SyntaxedObject (const std::string &s)
 
 SyntaxedObject (const SyntaxedObject &x)
 
 SyntaxedObject (const SyntaxedObject< PropertySet > &x)
 
- Public Member Functions inherited from BaseTree
 BaseTree (bool allowsChildren=true)
 
virtual ~BaseTree ()
 
const std::list< BaseTree * > & children () const
 
bool getAllowsChildren () const
 
BaseTreegetChildAt (unsigned childIndex) const
 
int getIndex (BaseTree *node) const
 
BaseTreegetParent () const
 
BaseTreegetTopParent ()
 
const BaseTreegetTopParent () const
 
bool isLeaf () const
 
void insert (BaseTree *child, int index=-1)
 
void remove (unsigned index)
 
void remove (BaseTree *node)
 
void removeFromParent ()
 
void setParent (BaseTree *newParent)
 
void clear ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 

Protected Member Functions

void initRegexp ()
 
- Protected Member Functions inherited from sigraph::Learner
 Learner (bool allowsChildren, const std::string &synt="")
 Constructeur protégé.
 

Additional Inherited Members

- Public Types inherited from carto::SyntaxedObject< PropertySet >
typedef internal::SyntaxedObjectSwitch< T, SUPERSUBCLASS(Interface, T)>::ContentType ContentType
 
- Public Types inherited from BaseTree
typedef std::list< BaseTree * >::iterator iterator
 
typedef std::list< BaseTree * >::const_iterator const_iterator
 
typedef std::list< BaseTree * >::reverse_iterator reverse_iterator
 
typedef std::list< BaseTree * >::const_reverse_iterator const_reverse_iterator
 

Detailed Description

Apprend seuelement les modèles vérifiant un certain critère.

Attribut syntaxique: "selective_learner"

Definition at line 17 of file selectiveLearner.h.

Constructor & Destructor Documentation

◆ SelectiveLearner()

sigraph::SelectiveLearner::SelectiveLearner ( bool allowsChildren = true,
const std::string & synt = "selective_learner" )

◆ ~SelectiveLearner()

virtual sigraph::SelectiveLearner::~SelectiveLearner ( )
virtual

Member Function Documentation

◆ checkClique()

bool sigraph::SelectiveLearner::checkClique ( const Clique * cl)

◆ initRegexp()

void sigraph::SelectiveLearner::initRegexp ( )
protected

◆ process() [1/2]

virtual void sigraph::SelectiveLearner::process ( LearnConstParam * lp)
virtual

Apprentissage sur une clique constante.

Par défaut (non-const), provoque une erreur.

Reimplemented from sigraph::ConstLearner.

◆ process() [2/2]

virtual void sigraph::SelectiveLearner::process ( LearnParam * lp)
virtual

Cette version de process() opérant sur des cliques non-const doit être redéfinie par les classes dérivées: on ne peut pas simplement la "brancher" sur la fonction opérant sur des cliques const sinon cela empêche d'utiliser des enfants ne dérivant pas de ConstLearner.

Reimplemented from sigraph::ConstLearner.


The documentation for this class was generated from the following file: