root

package
v0.34.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2023 License: BSD-3-Clause Imports: 1 Imported by: 1

Documentation

Overview

Package root defines ROOT core interfaces.

Index

Constants

View Source
const (
	Version = rvers.ROOT // ROOT version the groot library implements
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Array

type Array interface {
	Len() int // number of array elements
	Get(i int) interface{}
	Set(i int, v interface{})
}

Array describes ROOT abstract array type.

type Collection

type Collection interface {
	Object

	// Name returns the name of the collection.
	Name() string

	// Last returns the last element index
	Last() int

	// At returns the element at index i
	At(i int) Object

	// Len returns the number of elements in the collection
	Len() int
}

Collection is a collection of ROOT Objects.

type Double32 added in v0.18.0

type Double32 float64

Double32 is a float64 in memory, written as a float32 to disk.

type Float16 added in v0.18.0

type Float16 float32

Float16 is a float32 in memory, written with a truncated mantissa.

type List

type List interface {
	SeqCollection
}

List is a list of ROOT Objects.

type Merger added in v0.22.0

type Merger interface {
	ROOTMerge(src Object) error
}

Merger is a ROOT object that can ingest data from another ROOT object.

type Named

type Named interface {
	Object

	// Name returns the name of this ROOT object
	Name() string

	// Title returns the title of this ROOT object
	Title() string
}

Named represents a ROOT TNamed object

type ObjArray

type ObjArray interface {
	SeqCollection
	LowerBound() int
}

ObjArray is an array of ROOT Objects.

type ObjString

type ObjString interface {
	Name() string
	String() string
}

ObjString is a ROOT string that implements ROOT TObject.

type Object

type Object interface {
	// Class returns the ROOT class of this object
	Class() string
}

Object represents a ROOT object

type SeqCollection

type SeqCollection interface {
	Collection
}

SeqCollection is a sequential collection of ROOT Objects.

type UIDer added in v0.23.0

type UIDer interface {
	// UID returns the unique ID of this object
	UID() uint32
}

UIDer is the interface for objects that can be referenced.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL