Current known usage details records includes:
Definition at line 382 of file cdr.h.
virtual OSB_LIB::Udr::~Udr | ( | ) | [inline, virtual] |
const T * OSB_LIB::Udr::isa | ( | const T *& | ptr | ) | const |
T * OSB_LIB::Udr::isa | ( | T *& | ptr | ) |
Downcast to a derived class.
The function uses dynamic_cast<T*> to downcast an object of RatingFn to an object of a derived class. An example is given below:
class DerivedUdr : public Udr { ... }; void foo(const Udr& udr) { ... DerivedUdr *newUdr = rf.isa<DerivedUdr>(); if (newUdr) { // work with newUdr. } }
Assignment operator.
virtual UdrType OSB_LIB::Udr::udrType | ( | ) | const [pure virtual] |
Return the type of usage details record it is.
All derived classes should implement this function as the following:
class DerivedUdr : public Udr { ... UdrType udrType() { return udrType; }; ... static const UdrType const udrType_ = Udr::XXXX; ... };
Implemented in OSB_LIB::Cdr, and OSB_LIB::SumCdr01.