fpga

namespace eos
class fpga_handler : public eos::base_handler<fpga_mgr, fpga_handler>

Public Functions

fpga_handler(fpga_mgr *)
fpga_mgr *get_fpga_mgr() const
void watch_all_fpga_reservation_status(bool)
void watch_fpga_reservation_status(const std::string&, bool)
virtual void on_fpga_reservation_status_set(std::string)
virtual void on_fpga_reservation_status_del(std::string)
class fpga_iter_t : public eos::iter_base<fpga_t, fpga_iter_impl>

Private Functions

fpga_iter_t(fpga_iter_impl *const )

Friends

friend eos::fpga_iter_impl
class fpga_reservation_iter_t : public eos::iter_base<fpga_reservation_t, fpga_reservation_iter_impl>

Private Functions

fpga_reservation_iter_t(fpga_reservation_iter_impl *const )

Friends

friend eos::fpga_reservation_iter_impl
class fpga_reservation_status_iter_t : public eos::iter_base<fpga_reservation_status_t, fpga_reservation_status_iter_impl>

Private Functions

fpga_reservation_status_iter_t(fpga_reservation_status_iter_impl *const )

Friends

friend eos::fpga_reservation_status_iter_impl
class fpga_mgr : public eos::base_mgr<fpga_handler, std::string>

Public Functions

virtual ~fpga_mgr()
virtual fpga_iter_t fpga_status_iter() const = 0
virtual fpga_t fpga(const std::string&) const = 0
virtual fpga_reservation_iter_t reservation_iter() const = 0
virtual fpga_reservation_status_iter_t reservation_status_iter() const = 0
virtual bool reservation_exists(const std::string&) const = 0
virtual bool reservation_status_exists(const std::string&) const = 0
virtual fpga_reservation_t reservation(const std::string&) const = 0
virtual fpga_reservation_status_t reservation_status(const std::string&) const = 0
virtual void reservation_set(const fpga_reservation_t&) = 0
virtual void reservation_del(const std::string&) = 0
virtual eossdk_ham_t ham(const fpga_t&, size_t) const = 0

Protected Functions

fpga_mgr()

Private Members

eos::fpga_mgr::fpga_mgr

Friends

friend eos::fpga_handler

Type definitions in fpga

namespace eos

Enums

enum fpga_reservation_result_t

Values:

FRR_INVALID

The request is invalid.

FRR_PENDING

The request is pending.

FRR_SUCCESS

The request has succeeded.

FRR_FAILED_TO_MATCH_FPGA

The request failed; no matching FPGA was found.

FRR_FAILED_TO_RESERVE

The request failed; an FPGA could not be reserved.

FRR_FAILED_TO_PROGRAM

The request failed; the FPGA could not be programmed.

FRR_FAILED_TO_CLEAR

The request failed; the FPGA could not be cleared.

class fpga_t
#include <fpga.h>

Describes an application FPGA on a switch.

Public Functions

fpga_t()

Default constructor.

fpga_t(std::string const &name, std::string const &board_standard, std::string const &part_number)
fpga_t(const fpga_t &other)
fpga_t &operator=(fpga_t const &other)
std::string name() const

Getter for ‘name’: The name of the FPGA.

std::string board_standard() const

Getter for ‘board_standard’: The board standard of the FPGA.

std::string part_number() const

Getter for ‘part_number’: The part number of the FPGA.

bool operator==(fpga_t const &other) const
bool operator!=(fpga_t const &other) const
bool operator<(fpga_t const &other) const
uint32_t hash() const

The hash function for type fpga_t.

void mix_me(hash_mix &h) const

The hash mix function for type fpga_t.

std::string to_string() const

Returns a string representation of the current object’s values.

Private Members

std::shared_ptr<fpga_impl_t> pimpl

Friends

std::ostream &operator<<(std::ostream &os, const fpga_t &obj)

A utility stream operator that adds a string representation of fpga_t to the ostream.

class fpga_reservation_t
#include <fpga.h>

Describes an FPGA reservation on the switch.

Public Functions

fpga_reservation_t()
fpga_reservation_t(std::string const &id)
fpga_reservation_t(const fpga_reservation_t &other)
fpga_reservation_t &operator=(fpga_reservation_t const &other)
std::string id() const

Getter for ‘id’: The ID of the reservation.

std::string board_standard() const

Getter for ‘board_standard’: The target FPGA board standard.

void board_standard_is(std::string const &board_standard)

Setter for ‘board_standard’.

std::string fpga_name() const

Getter for ‘fpga_name’: The target FPGA name for the reservation.

void fpga_name_is(std::string const &fpga_name)

Setter for ‘fpga_name’.

std::string bitfile() const

Getter for ‘bitfile’: The file to be programmed. Empty string means to clear the FPGA.

void bitfile_is(std::string const &bitfile)

Setter for ‘bitfile’.

bool operator==(fpga_reservation_t const &other) const
bool operator!=(fpga_reservation_t const &other) const
bool operator<(fpga_reservation_t const &other) const
uint32_t hash() const

The hash function for type fpga_reservation_t.

void mix_me(hash_mix &h) const

The hash mix function for type fpga_reservation_t.

std::string to_string() const

Returns a string representation of the current object’s values.

Private Members

std::shared_ptr<fpga_reservation_impl_t> pimpl

Friends

std::ostream &operator<<(std::ostream &os, const fpga_reservation_t &obj)

A utility stream operator that adds a string representation of fpga_reservation_t to the ostream.

class fpga_reservation_status_t
#include <fpga.h>

Describes an FPGA reservation status on the switch.

Public Functions

fpga_reservation_status_t()
fpga_reservation_status_t(std::string const &id, fpga_reservation_result_t result, std::string fpga_name)
fpga_reservation_status_t(const fpga_reservation_status_t &other)
fpga_reservation_status_t &operator=(fpga_reservation_status_t const &other)
std::string id() const

Getter for ‘id’: The ID of the reservation status.

fpga_reservation_result_t result() const

Getter for ‘result’: The result of the reservation.

std::string fpga_name() const

Getter for ‘fpga_name’: The name of the reserved FPGA.

bool operator==(fpga_reservation_status_t const &other) const
bool operator!=(fpga_reservation_status_t const &other) const
bool operator<(fpga_reservation_status_t const &other) const
uint32_t hash() const

The hash function for type fpga_reservation_status_t.

void mix_me(hash_mix &h) const

The hash mix function for type fpga_reservation_status_t.

std::string to_string() const

Returns a string representation of the current object’s values.

Private Members

std::shared_ptr<fpga_reservation_status_impl_t> pimpl

Friends

std::ostream &operator<<(std::ostream &os, const fpga_reservation_status_t &obj)

A utility stream operator that adds a string representation of fpga_reservation_status_t to the ostream.