PLearn 0.1
Public Member Functions | Private Attributes
PLearn::PPointable Class Reference

#include <PP.h>

Inherited by PLearn::DoubleAccessSparseMatrix< real >, PLearn::Array2ArrayMap< T >, PLearn::DoubleAccessSparseMatrix< T >, PLearn::Graph_, PLearn::Hash< KeyType, DataType >, PLearn::IPopen, PLearn::MultiMap< A, B >, PLearn::Object, PLearn::OptionBase, PLearn::Other, PLearn::Parent, PLearn::pl_fdstreambuf, PLearn::PL_LogPlugin, PLearn::pl_streambuf, PLearn::PLearnService, PLearn::PMemArena, PLearn::PMemPool, PLearn::Popen, PLearn::PPointableSet, PLearn::ProgressBar, PLearn::ProgressBarPlugin, PLearn::PStreamBuf, PLearn::RandomVariable, PLearn::RemotePLearnServer, PLearn::RemoteTrampoline, PLearn::RowMapSparseMatrix< T >, PLearn::SDBVMField, PLearn::SDBVMOutputCoder, PLearn::Storage< T >, PLearn::TmpFilenames, PLearn::VMatAccessBuffer, PLearn::RowMapSparseMatrix< real >, PLearn::Storage< bool >, PLearn::Storage< char * >, PLearn::Storage< clock_t >, PLearn::Storage< CostFunc >, PLearn::Storage< double >, PLearn::Storage< edge_descriptor >, PLearn::Storage< FILE * >, PLearn::Storage< Func >, PLearn::Storage< GroupInfo >, PLearn::Storage< hash_map< int, int > >, PLearn::Storage< hash_map< string, real > >, PLearn::Storage< int >, PLearn::Storage< int32_t >, PLearn::Storage< JTime >, PLearn::Storage< Ker >, PLearn::Storage< list< int > >, PLearn::Storage< LocalPath >, PLearn::Storage< long >, PLearn::Storage< map< real, real > >, PLearn::Storage< map< real, string > >, PLearn::Storage< map< string, real > >, PLearn::Storage< map< string, TVec< string > > >, PLearn::Storage< Mat * >, PLearn::Storage< Mat >, PLearn::Storage< Measurer * >, PLearn::Storage< MFace >, PLearn::Storage< MoleculeTemplate >, PLearn::Storage< ofstream * >, PLearn::Storage< pair< int, int > >, PLearn::Storage< pair< int, real > >, PLearn::Storage< pair< int, string > >, PLearn::Storage< pair< real, int > >, PLearn::Storage< pair< real, real > >, PLearn::Storage< pair< RTR_target_t, RTR_weight_t > >, PLearn::Storage< pair< string, int > >, PLearn::Storage< pair< string, string > >, PLearn::Storage< pair< string, TVec< pair< real, real > > > >, PLearn::Storage< pair< T, int > >, PLearn::Storage< PP< BaseRegressorWrapper > >, PLearn::Storage< PP< ChemicalICP > >, PLearn::Storage< PP< ClassSubsetVMatrix > >, PLearn::Storage< PP< CostModule > >, PLearn::Storage< PP< Dictionary > >, PLearn::Storage< PP< FeatureSet > >, PLearn::Storage< PP< GradientCorrector > >, PLearn::Storage< PP< HyperCommand > >, PLearn::Storage< PP< MatrixModule > >, PLearn::Storage< PP< Molecule > >, PLearn::Storage< PP< NatGradEstimator > >, PLearn::Storage< PP< NetworkConnection > >, PLearn::Storage< PP< Object > >, PLearn::Storage< PP< OnlineLearningModule > >, PLearn::Storage< PP< Optimizer > >, PLearn::Storage< PP< PDistribution > >, PLearn::Storage< PP< PLearner > >, PLearn::Storage< PP< RBMConnection > >, PLearn::Storage< PP< RBMLayer > >, PLearn::Storage< PP< RBMLLParameters > >, PLearn::Storage< PP< RBMMatrixConnection > >, PLearn::Storage< PP< RBMModule > >, PLearn::Storage< PP< RBMMultinomialLayer > >, PLearn::Storage< PP< RegressionTree > >, PLearn::Storage< PP< RegressionTreeNode > >, PLearn::Storage< PP< RemotePLearnServer > >, PLearn::Storage< PP< SequentialLearner > >, PLearn::Storage< PP< Splitter > >, PLearn::Storage< PP< StatefulLearner > >, PLearn::Storage< PP< StatsCollector > >, PLearn::Storage< PP< VecStatsCollector > >, PLearn::Storage< PP< X > >, PLearn::Storage< PPath >, PLearn::Storage< PSDBVMFieldDiscrete >, PLearn::Storage< RandomVar >, PLearn::Storage< real >, PLearn::Storage< RealFunc >, PLearn::Storage< RealMapping >, PLearn::Storage< ReconstructionCandidate >, PLearn::Storage< RGB >, PLearn::Storage< RGBImage * >, PLearn::Storage< RTR_type >, PLearn::Storage< RTR_type_id >, PLearn::Storage< RVInstance >, PLearn::Storage< Set >, PLearn::Storage< single_mapping_t >, PLearn::Storage< StatsCollector >, PLearn::Storage< StatsIt >, PLearn::Storage< StatSpec >, PLearn::Storage< string >, PLearn::Storage< TMat< double > >, PLearn::Storage< TMat< int > >, PLearn::Storage< TVec< bool > >, PLearn::Storage< TVec< hash_map< int, int > > >, PLearn::Storage< TVec< int > >, PLearn::Storage< TVec< Mat * > >, PLearn::Storage< TVec< pair< int, int > > >, PLearn::Storage< TVec< pair< int, real > > >, PLearn::Storage< TVec< pair< int, string > > >, PLearn::Storage< TVec< PP< RBMConnection > > >, PLearn::Storage< TVec< PP< RBMLayer > > >, PLearn::Storage< TVec< string > >, PLearn::Storage< TVec< TVec< int > > >, PLearn::Storage< TVec< unsigned int > >, PLearn::Storage< TVec< Vec > >, PLearn::Storage< unsigned char >, PLearn::Storage< unsigned int >, PLearn::Storage< Var >, PLearn::Storage< VarArray >, PLearn::Storage< Vec >, PLearn::Storage< VecElementType >, PLearn::Storage< vertex_descriptor >, PLearn::Storage< VMat >, PLearn::Storage< VMField >, and PLearn::Storage< VMFieldStat >.

Collaboration diagram for PLearn::PPointable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PPointable ()
 PPointable (const PPointable &other)
void ref () const
void unref () const
int usage () const
virtual ~PPointable ()

Private Attributes

int refcount

Detailed Description

Definition at line 59 of file PP.h.


Constructor & Destructor Documentation

PLearn::PPointable::PPointable ( ) [inline]

Definition at line 65 of file PP.h.

        :refcount(0)
    {}
PLearn::PPointable::PPointable ( const PPointable other) [inline]

Definition at line 69 of file PP.h.

        :refcount(0)
    {}    
virtual PLearn::PPointable::~PPointable ( ) [inline, virtual]

Definition at line 86 of file PP.h.

{}

Member Function Documentation

void PLearn::PPointable::ref ( ) const [inline]
void PLearn::PPointable::unref ( ) const [inline]

Definition at line 76 of file PP.h.

References refcount.

    {
        const_cast<PPointable*>(this)->refcount--;
        if(refcount==0)
            delete this;
    }
int PLearn::PPointable::usage ( ) const [inline]

Definition at line 83 of file PP.h.

References refcount.

Referenced by PLearn::Object::declareMethods().

    { return refcount; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 62 of file PP.h.

Referenced by ref(), unref(), and usage().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines