C++
Public Member Functions | Private Attributes | List of all members
base Class Referenceabstract
Inheritance diagram for base:
Collaboration diagram for base:

Public Member Functions

 base ()
 
virtual void id ()
 
virtual void func3 ()=0
 
 base ()=default
 
 base (const base &)=delete
 
 base (base &&) noexcept=delete
 
baseoperator= (const base &)=delete
 
baseoperator= (base &&) noexcept=delete
 
virtual ~base ()=default
 

Private Attributes

int member_ = 0
 

Detailed Description

Definition at line 3 of file virt.cxx.

Constructor & Destructor Documentation

◆ base() [1/4]

base::base ( )
inline

Definition at line 6 of file virt.cxx.

◆ base() [2/4]

base::base ( )
explicitdefault

Rule of 5: If a class requires a user-defined destructor, a user-defined copy constructor, or a user-defined copy assignment operator, it almost certainly requires all five.

◆ base() [3/4]

base::base ( const base )
delete

◆ base() [4/4]

base::base ( base &&  )
deletenoexcept

◆ ~base()

virtual base::~base ( )
virtualdefault

Member Function Documentation

◆ func3()

virtual void base::func3 ( )
pure virtual

Implemented in derived.

◆ id()

virtual void base::id ( )
inlinevirtual

Reimplemented in derived.

Definition at line 8 of file virt.cxx.

◆ operator=() [1/2]

base& base::operator= ( base &&  )
deletenoexcept

◆ operator=() [2/2]

base& base::operator= ( const base )
delete

Member Data Documentation

◆ member_

int base::member_ = 0
private

Initialise class members in the header, I prefer the trailing underscore rather than "m_member".

Definition at line 337 of file test.cxx.


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