DGtal 2.1.0
Loading...
Searching...
No Matches
FByCloneCowPtr Struct Reference

Public Member Functions

 FByCloneCowPtr (Clone< A1 > a)
 
 ~FByCloneCowPtr ()
 
int value () const
 

Data Fields

CowPtr< A1myA1
 

Detailed Description

Definition at line 255 of file testCloneAndAliases.cpp.

Constructor & Destructor Documentation

◆ FByCloneCowPtr()

FByCloneCowPtr::FByCloneCowPtr ( Clone< A1 a)
inline

Definition at line 256 of file testCloneAndAliases.cpp.

257 : myA1( a )
258 {
259 std::cout << " FByCloneCowPtr( Clone<A1> a ) " << myA1 << std::endl;
260 }

References myA1.

◆ ~FByCloneCowPtr()

FByCloneCowPtr::~FByCloneCowPtr ( )
inline

Definition at line 262 of file testCloneAndAliases.cpp.

262{}

Member Function Documentation

◆ value()

int FByCloneCowPtr::value ( ) const
inline

Definition at line 264 of file testCloneAndAliases.cpp.

265 {
266 return myA1->data;
267 }

References A1::data, and myA1.

Field Documentation

◆ myA1

CowPtr<A1> FByCloneCowPtr::myA1

Definition at line 269 of file testCloneAndAliases.cpp.

Referenced by FByCloneCowPtr(), and value().


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