Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::TestValueObject Class Reference
Inheritance diagram for dart::TestValueObject:
dart::ValueObject

Public Member Functions

 TestValueObject (int *ptr)
 
virtual ~TestValueObject ()
 
int value () const
 
virtual int GetId () const
 
- Public Member Functions inherited from dart::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Detailed Description

Definition at line 12 of file allocation_test.cc.

Constructor & Destructor Documentation

◆ TestValueObject()

dart::TestValueObject::TestValueObject ( int ptr)
inlineexplicit

Definition at line 14 of file allocation_test.cc.

14 : ptr_(ptr) {
15 EXPECT_EQ(1, *ptr_);
16 *ptr_ = 2;
17 }

◆ ~TestValueObject()

virtual dart::TestValueObject::~TestValueObject ( )
inlinevirtual

Definition at line 19 of file allocation_test.cc.

19 {
20 EXPECT_EQ(3, *ptr_);
21 *ptr_ = 4;
22 }

Member Function Documentation

◆ GetId()

virtual int dart::TestValueObject::GetId ( ) const
inlinevirtual

Definition at line 25 of file allocation_test.cc.

25{ return 3; }

◆ value()

int dart::TestValueObject::value ( ) const
inline

Definition at line 24 of file allocation_test.cc.

24{ return *ptr_; }

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