DGtal 2.1.0
Loading...
Searching...
No Matches
A< TC, TD > Class Template Reference
Inheritance diagram for A< TC, TD >:
[legend]

Public Types

typedef TC C
 

Public Member Functions

 A (int _a)
 
 A (const A &other)
 
Aoperator= (const A &other)
 
 ~A ()
 
 A (int _a)
 
 A (const A &other)
 
Aoperator= (const A &other)
 
 ~A ()
 
 A (int _a)
 
 A (const A &other)
 
Aoperator= (const A &other)
 
 ~A ()
 
 A (const C &c)
 

Data Fields

int a
 

Static Public Attributes

static int nb = 0
 

Detailed Description

Member Typedef Documentation

◆ C

template<typename TC , typename TD >
typedef TC A< TC, TD >::C

Definition at line 46 of file testPartialTemplateSpecialization.cpp.

Constructor & Destructor Documentation

◆ A() [1/7]

template<typename TC , typename TD >
A< TC, TD >::A ( int  _a)
inline

Definition at line 44 of file testCountedConstPtrOrConstPtr.cpp.

44 : a( _a )
45 {
46 ++nb;
47 trace.info() << "#" << nb << " A::A( int ), a is " << a << std::endl;
48 }
std::ostream & info()
Trace trace

References A< TC, TD >::a, DGtal::Trace::info(), A< TC, TD >::nb, and DGtal::trace.

◆ A() [2/7]

template<typename TC , typename TD >
A< TC, TD >::A ( const A< TC, TD > &  other)
inline

Definition at line 49 of file testCountedConstPtrOrConstPtr.cpp.

49 : a( other.a )
50 {
51 ++nb;
52 trace.info() << "#" << nb << " A::A( const A& ), a is " << a << std::endl;
53 }

References A< TC, TD >::a, DGtal::Trace::info(), A< TC, TD >::nb, and DGtal::trace.

◆ ~A() [1/3]

template<typename TC , typename TD >
A< TC, TD >::~A ( )
inline

Definition at line 61 of file testCountedConstPtrOrConstPtr.cpp.

62 {
63 --nb;
64 trace.info() << "#" << nb << " A::~A(), a was " << a << std::endl;
65 }

References A< TC, TD >::a, DGtal::Trace::info(), A< TC, TD >::nb, and DGtal::trace.

◆ A() [3/7]

template<typename TC , typename TD >
A< TC, TD >::A ( int  _a)
inline

Definition at line 107 of file testCountedPtr.cpp.

107 : a( _a )
108 {
109 ++nb;
110 trace.info() << "#" << nb << " A::A( int ), a is " << a << std::endl;
111 }

References A< TC, TD >::a, DGtal::Trace::info(), A< TC, TD >::nb, and DGtal::trace.

◆ A() [4/7]

template<typename TC , typename TD >
A< TC, TD >::A ( const A< TC, TD > &  other)
inline

Definition at line 112 of file testCountedPtr.cpp.

112 : a( other.a )
113 {
114 ++nb;
115 trace.info() << "#" << nb << " A::A( const A& ), a is " << a << std::endl;
116 }

References A< TC, TD >::a, DGtal::Trace::info(), A< TC, TD >::nb, and DGtal::trace.

◆ ~A() [2/3]

template<typename TC , typename TD >
A< TC, TD >::~A ( )
inline

Definition at line 124 of file testCountedPtr.cpp.

125 {
126 --nb;
127 trace.info() << "#" << nb << " A::~A(), a was " << a << std::endl;
128 }

References A< TC, TD >::a, DGtal::Trace::info(), A< TC, TD >::nb, and DGtal::trace.

◆ A() [5/7]

template<typename TC , typename TD >
A< TC, TD >::A ( int  _a)
inline

Definition at line 44 of file testCountedPtrOrPtr.cpp.

44 : a( _a )
45 {
46 ++nb;
47 trace.info() << "#" << nb << " A::A( int ), a is " << a << std::endl;
48 }

References A< TC, TD >::a, DGtal::Trace::info(), A< TC, TD >::nb, and DGtal::trace.

◆ A() [6/7]

template<typename TC , typename TD >
A< TC, TD >::A ( const A< TC, TD > &  other)
inline

Definition at line 49 of file testCountedPtrOrPtr.cpp.

49 : a( other.a )
50 {
51 ++nb;
52 trace.info() << "#" << nb << " A::A( const A& ), a is " << a << std::endl;
53 }

References A< TC, TD >::a, DGtal::Trace::info(), A< TC, TD >::nb, and DGtal::trace.

◆ ~A() [3/3]

template<typename TC , typename TD >
A< TC, TD >::~A ( )
inline

Definition at line 61 of file testCountedPtrOrPtr.cpp.

62 {
63 --nb;
64 trace.info() << "#" << nb << " A::~A(), a was " << a << std::endl;
65 }

References A< TC, TD >::a, DGtal::Trace::info(), A< TC, TD >::nb, and DGtal::trace.

◆ A() [7/7]

template<typename TC , typename TD >
A< TC, TD >::A ( const C c)
inline

Definition at line 53 of file testPartialTemplateSpecialization.cpp.

54{
55 boost::ignore_unused_variable_warning( c );
56 std::cout << "Generic" << std::endl;
57}

Member Function Documentation

◆ operator=() [1/3]

template<typename TC , typename TD >
A & A< TC, TD >::operator= ( const A< TC, TD > &  other)
inline

Definition at line 54 of file testCountedConstPtrOrConstPtr.cpp.

55 {
56 if ( this != &other )
57 a = other.a;
58 trace.info() << "#" << nb << " A::op=( const A& ), a is " << a << std::endl;
59 return *this;
60 }

References A< TC, TD >::a, DGtal::Trace::info(), A< TC, TD >::nb, and DGtal::trace.

◆ operator=() [2/3]

template<typename TC , typename TD >
A & A< TC, TD >::operator= ( const A< TC, TD > &  other)
inline

Definition at line 117 of file testCountedPtr.cpp.

118 {
119 if ( this != &other )
120 a = other.a;
121 trace.info() << "#" << nb << " A::op=( const A& ), a is " << a << std::endl;
122 return *this;
123 }

References A< TC, TD >::a, DGtal::Trace::info(), A< TC, TD >::nb, and DGtal::trace.

◆ operator=() [3/3]

template<typename TC , typename TD >
A & A< TC, TD >::operator= ( const A< TC, TD > &  other)
inline

Definition at line 54 of file testCountedPtrOrPtr.cpp.

55 {
56 if ( this != &other )
57 a = other.a;
58 trace.info() << "#" << nb << " A::op=( const A& ), a is " << a << std::endl;
59 return *this;
60 }

References A< TC, TD >::a, DGtal::Trace::info(), A< TC, TD >::nb, and DGtal::trace.

Field Documentation

◆ a

template<typename TC , typename TD >
int A< TC, TD >::a

◆ nb

template<typename TC , typename TD >
int A< TC, TD >::nb = 0
static

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