version 1.1.2.12, 2004/10/20 14:55:25
|
version 1.1.2.13, 2004/11/12 16:46:11
|
|
|
#undef PEGASUS_ARRAY_T | #undef PEGASUS_ARRAY_T |
| |
| |
CQLTerm::CQLTerm(){ |
CQLTerm::CQLTerm() |
|
{ |
_rep = new CQLTermRep(); | _rep = new CQLTermRep(); |
} | } |
| |
CQLTerm::CQLTerm(const CQLTerm& inTerm){ |
CQLTerm::CQLTerm(const CQLTerm& inTerm) |
_rep = new CQLTermRep(inTerm._rep); |
{ |
|
_rep = new CQLTermRep(*inTerm._rep); |
} | } |
| |
CQLTerm::CQLTerm(const CQLFactor& theFactor) | CQLTerm::CQLTerm(const CQLFactor& theFactor) |
|
|
_rep = new CQLTermRep(theFactor); | _rep = new CQLTermRep(theFactor); |
} | } |
| |
CQLTerm::~CQLTerm(){ |
CQLTerm::~CQLTerm() |
|
{ |
if(_rep) | if(_rep) |
delete _rep; | delete _rep; |
} | } |
|
|
_rep->applyContext(inContext,inCid); | _rep->applyContext(inContext,inCid); |
} | } |
| |
CQLTerm& CQLTerm::operator=(const CQLTerm& rhs){ |
CQLTerm& CQLTerm::operator=(const CQLTerm& rhs) |
|
{ |
if(&rhs != this){ | if(&rhs != this){ |
if(_rep) delete _rep; | if(_rep) delete _rep; |
_rep = new CQLTermRep(rhs._rep); |
_rep = new CQLTermRep(*rhs._rep); |
} | } |
return *this; | return *this; |
|
|
} | } |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |