Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Attributes | Friends | List of all members
dev::eth::LogFilter Class Reference

#include <LogFilter.h>

Collaboration diagram for dev::eth::LogFilter:
[legend]

Public Member Functions

 LogFilter (h256 _earliest=EarliestBlockHash, h256 _latest=PendingBlockHash)
 
void streamRLP (RLPStream &_s) const
 
h256 sha3 () const
 
h256 earliest () const
 hash of earliest block which should be filtered More...
 
h256 latest () const
 hash of latest block which should be filtered More...
 
bool isRangeFilter () const
 Range filter is a filter which doesn't care about addresses or topics Matches are all entries from earliest to latest. More...
 
std::vector< LogBloombloomPossibilities () const
 
bool matches (LogBloom _bloom) const
 
bool matches (Block const &_b, unsigned _i) const
 
LogEntries matches (TransactionReceipt const &_r) const
 
LogFilter address (Address _a)
 
LogFilter topic (unsigned _index, h256 const &_t)
 
LogFilter withEarliest (h256 _e)
 
LogFilter withLatest (h256 _e)
 

Private Attributes

AddressHash m_addresses
 
std::array< h256Hash, 4 > m_topics
 
h256 m_earliest = EarliestBlockHash
 
h256 m_latest = PendingBlockHash
 

Friends

std::ostream & dev::eth::operator<< (std::ostream &_out, dev::eth::LogFilter const &_s)
 

Detailed Description

Definition at line 50 of file LogFilter.h.

Constructor & Destructor Documentation

dev::eth::LogFilter::LogFilter ( h256  _earliest = EarliestBlockHash,
h256  _latest = PendingBlockHash 
)
inline

Definition at line 53 of file LogFilter.h.

Here is the call graph for this function:

Member Function Documentation

LogFilter dev::eth::LogFilter::address ( Address  _a)
inline

Definition at line 76 of file LogFilter.h.

Here is the caller graph for this function:

vector< LogBloom > LogFilter::bloomPossibilities ( ) const
Returns
bloom possibilities for all addresses and topics

Definition at line 88 of file LogFilter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

h256 dev::eth::LogFilter::earliest ( ) const
inline

hash of earliest block which should be filtered

Definition at line 59 of file LogFilter.h.

Here is the caller graph for this function:

bool LogFilter::isRangeFilter ( ) const

Range filter is a filter which doesn't care about addresses or topics Matches are all entries from earliest to latest.

Returns
true if addresses and topics are unspecified

Definition at line 49 of file LogFilter.cpp.

Here is the caller graph for this function:

h256 dev::eth::LogFilter::latest ( ) const
inline

hash of latest block which should be filtered

Definition at line 62 of file LogFilter.h.

Here is the caller graph for this function:

bool LogFilter::matches ( LogBloom  _bloom) const

Definition at line 61 of file LogFilter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool LogFilter::matches ( Block const &  _b,
unsigned  _i 
) const

Definition at line 83 of file LogFilter.cpp.

Here is the call graph for this function:

LogEntries LogFilter::matches ( TransactionReceipt const &  _r) const

Definition at line 147 of file LogFilter.cpp.

Here is the call graph for this function:

h256 LogFilter::sha3 ( ) const

Definition at line 42 of file LogFilter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void LogFilter::streamRLP ( RLPStream _s) const

Definition at line 37 of file LogFilter.cpp.

Here is the call graph for this function:

LogFilter dev::eth::LogFilter::topic ( unsigned  _index,
h256 const &  _t 
)
inline

Definition at line 77 of file LogFilter.h.

Here is the caller graph for this function:

LogFilter dev::eth::LogFilter::withEarliest ( h256  _e)
inline

Definition at line 78 of file LogFilter.h.

Here is the caller graph for this function:

LogFilter dev::eth::LogFilter::withLatest ( h256  _e)
inline

Definition at line 79 of file LogFilter.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

std::ostream& dev::eth::operator<< ( std::ostream &  _out,
dev::eth::LogFilter const &  _s 
)
friend

Member Data Documentation

AddressHash dev::eth::LogFilter::m_addresses
private

Definition at line 84 of file LogFilter.h.

h256 dev::eth::LogFilter::m_earliest = EarliestBlockHash
private

Definition at line 86 of file LogFilter.h.

h256 dev::eth::LogFilter::m_latest = PendingBlockHash
private

Definition at line 87 of file LogFilter.h.

std::array<h256Hash, 4> dev::eth::LogFilter::m_topics
private

Definition at line 85 of file LogFilter.h.


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