BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Namespaces | Macros | Functions
vesting_balance_object.cpp File Reference
#include <graphene/chain/vesting_balance_object.hpp>
#include <fc/io/raw.hpp>

Go to the source code of this file.

Namespaces

 graphene
 
 graphene::chain
 

Macros

#define VESTING_VISITOR(NAME, MAYBE_CONST)
 

Functions

bool graphene::chain::sum_below_max_shares (const asset &a, const asset &b)
 
 graphene::chain::VESTING_VISITOR (on_deposit,)
 
 graphene::chain::VESTING_VISITOR (on_deposit_vested,)
 
 graphene::chain::VESTING_VISITOR (on_withdraw,)
 
 graphene::chain::VESTING_VISITOR (is_deposit_allowed, const)
 
 graphene::chain::VESTING_VISITOR (is_deposit_vested_allowed, const)
 
 graphene::chain::VESTING_VISITOR (is_withdraw_allowed, const)
 
 graphene::chain::VESTING_VISITOR (get_allowed_withdraw, const)
 

Macro Definition Documentation

◆ VESTING_VISITOR

#define VESTING_VISITOR (   NAME,
  MAYBE_CONST 
)
Value:
struct NAME ## _visitor \
{ \
typedef decltype( \
std::declval<linear_vesting_policy>().NAME( \
std::declval<vesting_policy_context>()) \
\
NAME ## _visitor( \
const asset& balance, \
const time_point_sec& now, \
const asset& amount \
) \
: ctx(balance, now, amount) {} \
\
template< typename Policy > \
result_type \
operator()(MAYBE_CONST Policy& policy) MAYBE_CONST \
{ \
return policy.NAME(ctx); \
} \
\
vesting_policy_context ctx; \
}

Definition at line 193 of file vesting_balance_object.cpp.

graphene::protocol::result_type
object_restriction_predicate< operation > result_type
Definition: list_1.cpp:29