Foo Struct Reference

Classes

class  Bar
 
class  Fail
 

Public Member Functions

 Foo ()
 
 ~Foo ()
 
 EIGEN_ALIGN_TO_BOUNDARY (128) int dummy
 
 Foo (int x=0)
 
 Foo (const Foo &)
 
 ~Foo ()
 

Public Attributes

int dummy
 

Static Public Attributes

static Index object_count = 0
 
static Index object_limit = 0
 

Constructor & Destructor Documentation

◆ Foo() [1/3]

Foo::Foo ( )
inline
10  : dummy(0) {
11 #ifdef EIGEN_EXCEPTIONS
12  // TODO: Is this the correct way to handle this?
14  std::cout << "\nThrow!\n";
15  throw Foo::Fail();
16  }
17 #endif
18  std::cout << '+';
20  }
Definition: ctorleak.cpp:27
int dummy
Definition: ctorleak.cpp:8
static Index object_limit
Definition: ctorleak.cpp:7
static Index object_count
Definition: ctorleak.cpp:6

References object_count, and object_limit.

◆ ~Foo() [1/2]

Foo::~Foo ( )
inline
22  {
23  std::cout << '-';
25  }

References object_count.

◆ Foo() [2/3]

Foo::Foo ( int  x = 0)
inline
12  : dummy(x) {
13 #ifdef EIGEN_EXCEPTIONS
14  // TODO: Is this the correct way to handle this?
16  std::cout << "\nThrow!\n";
17  throw Foo::Fail();
18  }
19 #endif
20  std::cout << '+';
22  eigen_assert((std::uintptr_t(this) & (127)) == 0);
23  }
#define eigen_assert(x)
Definition: Macros.h:910
list x
Definition: plotDoE.py:28

References eigen_assert, object_count, and object_limit.

◆ Foo() [3/3]

Foo::Foo ( const Foo )
inline
24  {
25  std::cout << 'c';
27  eigen_assert((std::uintptr_t(this) & (127)) == 0);
28  }

References eigen_assert, and object_count.

◆ ~Foo() [2/2]

Foo::~Foo ( )
inline
30  {
31  std::cout << '~';
33  }

References object_count.

Member Function Documentation

◆ EIGEN_ALIGN_TO_BOUNDARY()

Foo::EIGEN_ALIGN_TO_BOUNDARY ( 128  )

Member Data Documentation

◆ dummy

int Foo::dummy

◆ object_count

Index Foo::object_count = 0
static

Referenced by EIGEN_DECLARE_TEST(), Foo(), and ~Foo().

◆ object_limit

Index Foo::object_limit = 0
static

Referenced by EIGEN_DECLARE_TEST(), and Foo().


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