Struct birli::CxxAOFlagger

source ·
#[repr(C)]
pub struct CxxAOFlagger { /* private fields */ }
Expand description

CXX Wrapper for aoflagger::AOFlagger, the main class for access to the flagger functionality.

Please see the aoflagger documentation for more details.

Implementations§

source§

impl CxxAOFlagger

source

pub fn GetVersion(&self, major: &mut i16, minor: &mut i16, subMinor: &mut i16)

Get the AOFlagger library version number separated in major, minor and subminor fields.

Examples
use aoflagger_sys::cxx_aoflagger_new;
use std::os::raw::c_short;

let mut major: c_short = -1;
let mut minor: c_short = -1;
let mut sub_minor: c_short = -1;
let aoflagger = unsafe { cxx_aoflagger_new() };
aoflagger.GetVersion(&mut major, &mut minor, &mut sub_minor);
assert!(major >= 3);
assert!(minor >= 0);
assert!(sub_minor >= 0);
source§

impl CxxAOFlagger

source

pub unsafe fn MakeImageSet( &self, width: usize, height: usize, count: usize, initialValue: f32, widthCapacity: usize ) -> UniquePtr<CxxImageSet>

Create a new CxxImageSet with specified dimensions and initial value.

Undefined Behavior

TODO: what if widthCapacity < width?

source§

impl CxxAOFlagger

source

pub unsafe fn MakeFlagMask( &self, width: usize, height: usize, initialValue: bool ) -> UniquePtr<CxxFlagMask>

Create a new CxxFlagMask with specified dimensions and initial value.

source§

impl CxxAOFlagger

source

pub fn FindStrategyFileGeneric(&self, scenario: &String) -> String

Find a Lua strategy filename for a Generic telescope.

source§

impl CxxAOFlagger

source

pub fn FindStrategyFileMWA(&self) -> String

Find a Lua strategy filename for the MWA telescope.

source§

impl CxxAOFlagger

source

pub fn LoadStrategyFile(&self, filename: &String) -> UniquePtr<CxxStrategy>

Load a strategy from disk.

Trait Implementations§

source§

impl ExternType for CxxAOFlagger

§

type Kind = Opaque

§

type Id

A type-level representation of the type’s C++ namespace and type name. Read more
source§

impl Send for CxxAOFlagger

source§

impl Sync for CxxAOFlagger

source§

impl UniquePtrTarget for CxxAOFlagger

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.