QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
Bond::Price Class Reference

Bond price information. More...

#include <bond.hpp>

+ Collaboration diagram for Bond::Price:

Public Types

enum  Type { Dirty , Clean }
 

Public Member Functions

 Price ()
 
 Price (Real amount, Type type)
 
Real amount () const
 
Type type () const
 
bool isValid () const
 

Private Attributes

Real amount_
 
Type type_
 

Detailed Description

Bond price information.

Examples
CallableBonds.cpp, ConvertibleBonds.cpp, and Repo.cpp.

Definition at line 62 of file bond.hpp.

Member Enumeration Documentation

◆ Type

enum Type
Enumerator
Dirty 
Clean 

Definition at line 64 of file bond.hpp.

Constructor & Destructor Documentation

◆ Price() [1/2]

Price ( )

Definition at line 65 of file bond.hpp.

◆ Price() [2/2]

Price ( Real  amount,
Type  type 
)

Definition at line 66 of file bond.hpp.

Member Function Documentation

◆ amount()

Real amount ( ) const

Definition at line 67 of file bond.hpp.

+ Here is the caller graph for this function:

◆ type()

Type type ( ) const

Definition at line 71 of file bond.hpp.

+ Here is the caller graph for this function:

◆ isValid()

bool isValid ( ) const

Definition at line 72 of file bond.hpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ amount_

Real amount_
private

Definition at line 74 of file bond.hpp.

◆ type_

Type type_
private

Definition at line 75 of file bond.hpp.